this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(t,e,n,i){"use strict";function o(){var t=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div \n\t\t\t\t\tclass="landing-ui-button-icon-','"\n\t\t\t\t\tonclick="','"\n\t\t\t\t\ttitle="','"\n\t\t\t\t></div>\n\t\t\t']);o=function e(){return t};return t}var s=function(t){babelHelpers.inherits(n,t);function n(t){var o;babelHelpers.classCallCheck(this,n);o=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this));o.setEventNamespace("BX.Landing.UI.Component.IconButton");o.subscribeFromOptions(i.fetchEventsFromOptions(t));o.options=babelHelpers.objectSpread({},t);o.cache=new e.Cache.MemoryCache;o.onClick=o.onClick.bind(babelHelpers.assertThisInitialized(o));return o}babelHelpers.createClass(n,[{key:"getData",value:function t(){return this.options.data}},{key:"onClick",value:function t(e){e.preventDefault();this.emit("onClick")}},{key:"setType",value:function t(e){this.getLayout().className="landing-ui-button-icon-".concat(e)}},{key:"getLayout",value:function t(){var n=this;return this.cache.remember("layout",function(){var t=e.Tag.render(o(),n.options.type,n.onClick,e.Type.isStringFilled(n.options.title)?n.options.title:"");if(e.Type.isPlainObject(n.options.style)){e.Dom.style(t,n.options.style)}if(e.Type.isStringFilled(n.options.iconSize)){e.Dom.style(t,"background-size",n.options.iconSize)}return t})}}]);return n}(n.EventEmitter);babelHelpers.defineProperty(s,"Types",{remove:"remove",drag:"drag",edit:"edit",font:"font",link:"link",user1:"user1",user1Active:"user1active"});t.IconButton=s})(this.BX.Landing.UI.Component=this.BX.Landing.UI.Component||{},BX,BX.Event,BX.Landing.UI.Component);
//# sourceMappingURL=iconbutton.bundle.map.js